<%@ page language="java" pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
  <head>
  	<%@include file="/res/include/base-head.jsp"%>
  	<%@include file="/res/include/jquery-easyui.jsp"%>
  	<script type="text/javascript" src="${pageContext.request.contextPath}/res/js/mall/shop.js"></script>
  </head>
  <body>
<div class="shop_detail">
	<div class="info">
    	<h2>店铺名称：${mallShopVo.name }</h2>
        <dl>
        	<dt>创建时间：</dt>
            <dd>${mallShopVo.strNewAt }</dd>
        </dl>
        <dl>
        	<dt>用户昵称：</dt>
            <dd>${mallShopVo.userNick }</dd>
        </dl>
        <dl>
        	<dt>店铺简介：</dt>
            <dd>${mallShopVo.resume}</dd>
        </dl>
        <dl>
        	<dt>店铺地址：</dt>
            <dd>${mallShopVo.communityName}${mallShopVo.address}</dd>
        </dl>
        <div class="img_text"><p><img src="${mallShopVo.fullLogo}" alt="" /></p>
        <a href="${mallShopVo.fileDomain}${mallShopVo.logo }" target="_blank">查看LOGO</a>
        </div>
   </div>
   <div class="info2">
   		<dl>
        	<dt>店铺种类：</dt>
            <dd>${mallShopVo.strStyle}</dd>
        </dl>
        <dl>
        	<dt>主营类目：</dt>
            <dd>${mallShopVo.categoryName}</dd>
        </dl>
        <dl>
        	<dt>营业时间：</dt>
            <dd>${mallShopVo.busStart}~${mallShopVo.busEnd}</dd>
        </dl>
        <dl>
        	<dt>店铺电话：</dt>
            <dd>${mallShopVo.phone}</dd>
        </dl>
        <dl>
        	<dt>配送类型：</dt>
            <dd>${mallShopVo.sendDeliveryTypeStr}</dd>
        </dl>
        <dl>
        	<dt>支付方式：</dt>
            <dd>${mallShopVo.payTypeStr}</dd>
        </dl>  
        <c:if test="${mallShopVo.style==2}">  
		 <dl>
	     	<dt>营业执照：</dt>
	         <dd>
	         	<ul class="product_imglist licensePic_imglist">
	         		<c:set var="rImgCount" value="1" />
	         		<c:forTokens items="${mallShopVo.licensePic}" delims=";" var="rImg" varStatus="status"> 
	         			<c:set var="rImgCount" value="${status.count}" />
	         			<li>
	         			<a href="http://file.xfquanquan.com${rImg }" class="item" id="licensePic${status.index+1}"  target="_blank"><p class="img"><img src="http://file.xfquanquan.com${rImg }" alt="" /></p></a>
	         			</li>
	         		</c:forTokens>
	          </ul>
	         </dd>
	     </dl>
        </c:if>
    </div>
    <div class="info2">
    	<dl>
            <dt>店铺状态：</dt>
            <dd><c:choose>
	            <c:when test="${mallShopVo.status == 1 }">正常</c:when>
	            <c:when test="${mallShopVo.status == 2 }">暂停</c:when>
            </c:choose></dd>
        </dl>
        <dl>
            <dt>审核状态：</dt>
            <dd id="auditStatusStr"><c:choose>
	            <c:when test="${mallShopVo.auditStatus == 1 }">未审核</c:when>
	            <c:when test="${mallShopVo.auditStatus == 2 }">已通过</c:when>
	            <c:otherwise>不通过</c:otherwise>
            </c:choose></dd>
        </dl>
        <dl>
        	<dt>审核时间：</dt>
        	<dd id="auditAtStr">
        	<c:choose>
	            <c:when test="${empty mallShopVo.auditAt}">-</c:when>
	            <c:otherwise><fmt:formatDate pattern="yyyy-MM-dd hh:mm:ss" value="${mallShopVo.auditAt}" /></c:otherwise>
            </c:choose>
        	</dd>
        </dl>
    </div> 
    <div class="info2">
    	<dl>
            <dt>店铺订单：</dt>
            <dd>${orderInfo}</dd>
        </dl>
    </div> 
    <div class="shop_foot">
    	<p class="shop_btn"><input type="button" value="审核通过" onclick="admin.shop.setAuditStatus('${mallShopVo.id}',2)"/>
    	<input type="button" value="审核不通过" onclick="admin.shop.setAuditStatus('${mallShopVo.id}',3)"/></p>
    </div>
</div>	
<script type="text/javascript">
</script>
  </body>
</html>
